package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysChatRoomGroup;

import java.io.Serial;
import java.io.Serializable;

/**
 * 群聊房间视图对象 sys_chat_room_group
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysChatRoomGroup.class)
public class SysChatRoomGroupVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户状态ID
     */
    @ExcelProperty(value = "用户状态ID")
    private Long id;

    /**
     * 房间ID
     */
    @ExcelProperty(value = "房间ID")
    private Long roomId;

    /**
     * 群聊名称
     */
    @ExcelProperty(value = "群聊名称")
    private String name;

    /**
     * 群聊头像
     */
    @ExcelProperty(value = "群聊头像")
    private Long avatar;

    /**
     * 房间状态 0正常 1禁用(删好友了禁用)
     */
    @ExcelProperty(value = "房间状态 0正常 1禁用(删好友了禁用)")
    private Long status;

    /**
     * 额外信息（根据不同类型房间有不同存储的东西）
     */
    @ExcelProperty(value = "额外信息", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "根=据不同类型房间有不同存储的东西")
    private String extraMsg;

    /**
     * 在线人数
     */
    @ExcelProperty(value = "在线人数")
    private Long onlineCount;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

}
